package constant

type FamilyMember struct {
	Relationship       Relationship `json:"relationship" bson:"relationship"`             // 家人名称
	RelationshipStatus string       `json:"relationshipStatus" bson:"relationshipStatus"` // 家人现状
}

type Relationship string

func (r Relationship) Value() string {
	return string(r)
}

const (
	Father  Relationship = "父亲"
	Mother  Relationship = "母亲"
	Sibling Relationship = "兄弟姐妹"
	Child   Relationship = "子女"
	Other   Relationship = "其他"
)

type FamilyType string

func (f FamilyType) Value() string {
	return string(f)
}

const (
	SingleParent FamilyType = "单亲家庭"
	OriginFamily FamilyType = "原生家庭"
)

type FamilyInfo struct {
	FamilyType FamilyType `json:"familyType"   bson:"family_type"` // 家庭成员的备注，比如单亲家庭
	//HasPension   bool             `json:"hasPension"   bson:"has_pension"` // 是否有养老金，是否退休
	FatherDetail RelationDetail   `json:"fatherDetail" bson:"father_detail"`
	MotherDetail RelationDetail   `json:"motherDetail" bson:"mother_detail"`
	OtherDetail  []RelationDetail `json:"otherDetail"  bson:"other_detail"`
}

type RelationDetail struct {
	Age  int    `json:"age"`
	Desc string `json:"desc"` // 情况介绍，比如：职业、收入、老师/在职/退休/经商
}
